package com.news.pojo;

import java.io.Serializable;

/**
 * 广告实体类
 */
public class Adver implements Serializable {
    //实现序列化
    private static final long serialVersionUID = 1L;
    /**
     * 广告id
     */
    private int aid;
    /**
     * 广告名字
     */
    private String aname;
    /**
     * 广告内容
     */
    private String acontent;
    /**
     * 广告图片
     */
    private String apicPath;
    //无参构造函数

    public Adver() {
    }

    @Override
    public String toString() {
        return "Adver{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", acontent='" + acontent + '\'' +
                ", apicPath='" + apicPath + '\'' +
                '}';
    }
    //get/set访问方法

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAcontent() {
        return acontent;
    }

    public void setAcontent(String acontent) {
        this.acontent = acontent;
    }

    public String getApicPath() {
        return apicPath;
    }

    public void setApicPath(String apicPath) {
        this.apicPath = apicPath;
    }
}
